package org.btik.lightdev.dev.udp;

import org.btik.light.tool.type.HashByteArray;

import static org.btik.light.tool.type.HashByteArrayFactory.strAsBArray;

/**
 * @author lustre
 * @since 2023/9/17 15:24
 */
public interface ActionConstant {
    HashByteArray HELLO = strAsBArray("hello");

    HashByteArray NONCE = strAsBArray("nonce");

    HashByteArray LOGIN = strAsBArray("login");

    HashByteArray KEEP = strAsBArray("keep");

    byte[] LOGIN_SUCCESS = {'L','R','E','S','T', 0};

    byte[] LOGIN_AUTH_FAILED = {'L','R','E','S','T',1 };

    byte[] HELLO_ACK = {'L','H','A','C','K'};
    byte NONCE_LENGTH = 8;

    byte NEWLINE = '\n';
}
